package com.baizhi.shane.shane.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 闻柏智
 * @date 2023/09/20 21:11:37
 */
@ApiModel("分页查询问题出参DTO")
@Data
public class PageQuestionMainOutDTO {
    @ApiModelProperty(value = "问题ID")
    private Long questionId;
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty(value = "用户昵称")
    private String userNickname;
    @ApiModelProperty(value = "用户头像URL")
    private String userImageUrl;
    @ApiModelProperty(value = "问题标题")
    private String questionTitle;
    @ApiModelProperty(value = "问题显示文本")
    private String questionDisplayText;
    @ApiModelProperty(value = "问题创建时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
}
